package com.focusai.efairy.network;


import com.focusai.efairy.network.exception.NetworkException;
import com.focusai.efairy.network.request.base.Request;

/**
 * Created by heqingbao on 2016/8/3.
 */
public interface Network {

    NetworkResponse performRequest(Request<?> request) throws NetworkException;

    long sendRequest(Request<?> request, NetCallback callback);

    void cancelRequest(long requestId);
}
